package com.zcs.lib.utils;

import android.view.View;

/**
 * Created by ZengCS on 2019/9/24.
 * E-mail:zengcs@vip.qq.com
 * Add:成都市天府软件园E3
 * Desc:类说明
 */
public class RequestFocusUtil {

    public static void focus(View view){
        if (view==null)return;

        try {
            view.setFocusable(true);
            view.setFocusableInTouchMode(true);
            view.requestFocus();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
